package com.alan.validate.constraints.Impl;

import com.alan.validate.constraints.Email;
import com.alan.validate.util.EmailValid;
import com.alan.validate.util.ParamValidate;

public class EmailValidate implements ParamValidate<Email,String> {

	
	public void initialize(Email constraintAnnotation){
	}
	
	public boolean isValid(String value) {
		if (value == null || value.trim().length() < 3) {
			return false;
		}
		return EmailValid.isEmail(value);
	}

}
